package com.company.card_service.api;

import com.company.card_service.service.CompanyProfileTypeService;
import com.company.card_service.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 邓小熙
 * @Date 2022/9/16 17:36
 * @Version 1.0
 */
@RestController
@RequestMapping("api/company/companyProfileType")
@Api(value = "提供公司简介页面显示所需的分类接口", tags = "公司简介分类管理")
public class ApiCompanyProfileTypeController {
    @Autowired
    private CompanyProfileTypeService companyProfileTypeService;

    @GetMapping("/list{cid}")
    @ApiOperation("公司简介分类接口")
    @ApiImplicitParam(dataType = "int",name = "cid",value = "公司id",required = true)
    public Result listCompanyProfileType(@PathVariable Integer cid) {
        Result result = companyProfileTypeService.selectCompanyProfileType(cid);
        return result;
    }
}

